package com.neusoft.bizcore.auth.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.bizcore.auth.model.AuthOganization;

public interface AuthOganizationRepository
        extends JpaRepository<AuthOganization, Long>, CustomizedAuthOganizationRepository {

    AuthOganization findByCode(String code);

    List<AuthOganization> findByParent(AuthOganization parent);

    List<AuthOganization> findByParent_code(String code);

}
